'use client';

import { motion } from 'motion/react';

export default function DownToTopView({
  children,
  delay,
}: { children: React.ReactNode; delay?: number }) {
  return (
    <motion.div
      initial={{ y: 50, opacity: 0 }}
      animate={{ y: 0, opacity: 1 }}
      transition={{ duration: 0.2, ease: 'easeOut', delay }}
    >
      {children}
    </motion.div>
  );
}
